package com.ghy.dto;

import com.ghy.dto.PageDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.Size;

/**
 * @author GaoHeYang
 */
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Schema(name ="菜单分页DTO")
@Data
public class RolePageDTO extends PageDTO {
    @Size(min = 1,max = 42,message ="标题长度必须在1~42之间")
    @Schema(description = "标题")
    private String title;
}
